//引入combineReducers,用于合并组件
import {combineReducers} from 'redux'
//引入为Count组件服务的reducer
import countReducer from './count'
//引入为Person组件服务的reducer
import personReducer from './person'

//汇总所有的reducer变为一个总的reducer
const combineReducer = combineReducers({
    count: countReducer,
    persons: personReducer
})

export default combineReducer